package com.spirit.service.user;

import com.spirit.dao.userdao.UserDao;
import com.spirit.domain.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserDao userDao;

    public void createUser(User user) {
        userDao.addUser(user);
    }

    public Collection<User> listUser() {
        return userDao.listUsers();
    }
}
